const fs = require('fs');
const crypto = require('crypto');

exports.generateHash = (filePath) => {
    const fileData = fs.readFileSync(filePath);
    return crypto.createHash('md5').update(fileData).digest('hex');
};